/**
 * 自定义Promise
 * 定义整体结构
 */

let p = new Promise((resolve, reject) => {
  resolve('ok');
});

p.then(value => {
  console.log(value);
}, reson => {
  console.log(reson);
})


